package adapter;

public class DuckTest {

	public static void main(String[] args) {
		Duck d;
		Turkey t;
		
		d = new DuckDuck();
		t = new TurkeyTurkey();
		
		System.out.println("Rata si curcan normal ");
		d.fly();d.quack();
		t.fly();t.gobble();
		
		System.out.println("Curcan care se poarta ca o rata");
		Duck t1;
		t1 = new TurkeyAdapter(t);
		t1.fly();t1.quack();
		
		System.out.println("Rata care se poarta ca un curcan");
		Turkey d1;
		d1 = new DuckAdapter(d);
		d1.fly(); d1.gobble();
	}

}
